Copy Layouts from One Resolution to Another

The Copy Layout To and Copy Layout From options allow you to copy the size and position of Controls between different Platforms and different screen resolutions within a Platform.

The options are available in the Layout group on the Ribbon's Design tab or from the context menu displayed when you right-click on a Control. Both options can be used to copy the relevant attributes of a single Control or of multiple Controls.

 

If you are working in Linked Mode, where all your supported Platforms share the same forms, you can copy the size and position of Controls between any of your supported Platforms and screen resolutions. If you are working in Mixed Mode you can only use these options to copy the Control attributes between different screen resolutions within a single Platform. In either case, the Control attributes will only be copied within the same form and can't be copied to a different form.

 

Copy Layout To allows you to select one or more Controls on a form and then copy their size and position Properties TO the same Control(s) on the same form under another Platform or screen resolution.

 

Copy Layout From allows you to select one or more Controls on a form and then copy the size and position Properties FROM the same Control(s) on the same form under another Platform or screen resolution.

 

When copying Layout Properties to a Control, App Studio will also take account of the Repositioning Properties of the Control in order to determine the size and position of the receiving Control. The receiving Control will be scaled up or down in accordance with the Repositioning Properties settings and the relative sizes between the two forms. The Repositioning Properties that cap the amount by which a Control can be enlarged are ignored for these purposes.

 

Both Copy Layout options display a menu of possible Platforms and screen resolutions from which you can select the one you want to copy from or to.

 

To copy multiple Controls, first select the required Controls in the usual way, and then choose the required option from the Ribbon or by right-clicking on one of the selected Controls.

 

This feature can be used, for example, to design your forms at your lowest resolution and then copy the size and position of the Controls to your higher resolutions. You can then use the Repositioning Properties to resize and adjust the position of the Controls on your higher resolutions without worrying that they fit on your lowest resolution form.